<div id="col-l">
    <div class="title01-top"></div>
    <div class="title01">    
        <div class="title01-in">
            <p class="f-right noprint"><strong><a href="/task/edytuj-task/id/<?php echo $this->id; ?>/" >Edytuj</a></strong></p>
            <h2 class="ico-list"><?php echo $this->nazwa; ?></h2>
        </div>
    </div>                
    <div class="title01-bottom"></div>

    <div class="box">

        <div class="col50">
            <!----------DANE-------------->
            <div class="new-link">            
                <strong>Projekt: </strong><span class="high"><?php echo $this->projekt; ?></span><br/>
                <strong>Kierownik: </strong><span class="high"><?php echo $this->kieroI . ' ' . $this->kieroN; ?></span><br/>
                <strong>Przydzielone do: </strong><span class="high"><?php echo $this->userI . ' ' . $this->userN; ?></span><br/>
                <strong>Data utworzenia: </strong><span class="high"><?php echo $this->dataUtw; ?></span><br/>
                <strong>Data zakończenia: </strong><span class="high"><?php echo $this->dataZak; ?></span><br/>
                <strong>Status: </strong><span class="high"><?php echo $this->status; ?></span>
                <hr class="noscreen"></div> <!-- /new-link -->
            <!----------OPIS-------------->
            <div class="new-link">            
                <strong>Opis zadania: </strong><br/>
                <p><?php echo $this->opis; ?></p>                    
                <hr class="noscreen"></div> <!-- /new-link -->                
            <!----------KOMENTY-------------->
            <div class="new-link">            
                <strong>Komentarze: </strong> <a id="zwin" href="#">rozwiń</a> | <a href="/task/komentuj/id/<?php echo $this->id; ?>">dodaj</a><br/>
                <div id="komentarze">
                    <?php if ($this->komenty) { ?>
                        <?php foreach ($this->komenty as $k) { ?>
                            <div class="komentarz">
                                <div class="kom-pasek">
                                    <p><b>Autor: </b><?php echo $k['user']; ?> <b>Data: </b><?php echo $k['data']; ?></p>
                                </div>
                                <div class="kom-tresc">
                                    <p><?php echo $k['tresc']; ?></p>
                                </div>
                            </div>
                        <?php } ?>
                    <?php
                    } else {
                        echo 'Brak komentarzy do wyświetlenia';
                    }
                    ?>
                </div>
                <hr class="noscreen"></div> <!-- /new-link -->  
            <!----------STATUSY-------------->
            <div class="new-link">            
                <strong>Statusy: </strong> <a id="zwin2" href="#">rozwiń</a><br/>
                <div id="statusy">
<?php foreach ($this->historia as $h) { ?>
                        <div class="status">
                            <div class="stat-pasek">
                                <p><b>Autor: </b><?php echo $h['user1']; ?> <b>Data: </b><?php echo $h['data']; ?></p>
                            </div>
                            <div class="stat-tresc">
                                <p>
                                    <?php
                                    if ($h['status'] == 1) {
                                        echo 'Otwarte';
                                    } else if ($h['status'] == 2) {
                                        echo 'Zamknięte';
                                    } else if ($h['status'] == 3) {
                                        echo 'Przydzielone do: ' . $h['user2'];
                                    }
                                    ?>
                                </p>
                            </div>
                        </div>
<?php } ?>
                </div>
                <hr class="noscreen"></div> <!-- /new-link --> 
        </div> <!-- /col50 -->
    </div> <!-- /box -->
</div>